package StudyCode.summary.mycollection;

import java.util.ArrayList;
import java.util.List;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ConvertStringArrayToStringList {
	public static void main(String[] argv) {
		String[] array = new String[]{"1", "abc", "level",
				"www.tah1986.com", "asdf 123"};
		System.out.println(stringArrayToStringList(array));
	}

	public static List<String> stringArrayToStringList(String[] array) {
		List<String> result = new ArrayList<String>();
		for (int i = 0; i < array.length; i++) {
			result.add(array[i]);
		}
		return result;
	}

}
